home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / SmeP.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  3KB  |  91 lines

  1. /*
  2.  * $Xorg: SmeP.h,v 1.4 2001/02/09 02:03:46 xorgcvs Exp $
  3.  *
  4. Copyright 1989, 1994, 1998  The Open Group
  5.  
  6. Permission to use, copy, modify, distribute, and sell this software and its
  7. documentation for any purpose is hereby granted without fee, provided that
  8. the above copyright notice appear in all copies and that both that
  9. copyright notice and this permission notice appear in supporting
  10. documentation.
  11.  
  12. The above copyright notice and this permission notice shall be included in
  13. all copies or substantial portions of the Software.
  14.  
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  18. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  19. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21.  
  22. Except as contained in this notice, the name of The Open Group shall not be
  23. used in advertising or otherwise to promote the sale, use or other dealings
  24. in this Software without prior written authorization from The Open Group.
  25.  */
  26. /* $XFree86: xc/lib/Xaw/SmeP.h,v 1.8 2001/12/14 19:54:43 dawes Exp $ */
  27.  
  28. /*
  29.  * This is the private header file for the Athena Sme object.
  30.  * This object is intended to be used with the simple menu widget.  
  31.  *
  32.  * Date:    April 3, 1989
  33.  *
  34.  * By:      Chris D. Peterson
  35.  *          MIT X Consortium 
  36.  *          kit@expo.lcs.mit.edu
  37.  */
  38.  
  39. #ifndef _XawSmeP_h
  40. #define _XawSmeP_h
  41.  
  42. /*
  43.  * Sme Widget Private Data
  44.  */
  45. #include <X11/Xfuncproto.h>
  46.  
  47. #include <X11/Xaw/Sme.h>
  48.  
  49. _XFUNCPROTOBEGIN
  50.  
  51. /* New fields for the Sme widget class */
  52. typedef struct _SmeClassPart {
  53.     XtWidgetProc highlight;
  54.     XtWidgetProc unhighlight;
  55.     XtWidgetProc notify;
  56.     XtPointer     extension;
  57. } SmeClassPart;
  58.  
  59. /* Full class record */
  60. typedef struct _SmeClassRec {
  61.     RectObjClassPart    rect_class;
  62.     SmeClassPart    sme_class;
  63. } SmeClassRec;
  64.  
  65. extern SmeClassRec smeClassRec;
  66.  
  67. /* New fields for the Sme widget */
  68. typedef struct {
  69.     /* resources */
  70.     XtCallbackList callbacks;
  71.     Boolean international;
  72. #ifndef OLDXAW
  73.     XtPointer pad[4];    /* for future use and keep binary compatability */
  74. #endif
  75. } SmePart;
  76.  
  77. /* Full instance record */
  78. typedef struct _SmeRec {
  79.     ObjectPart    object;
  80.     RectObjPart    rectangle;
  81.     SmePart    sme;
  82. } SmeRec;
  83.  
  84. #define XtInheritHighlight    ((XtWidgetProc)_XtInherit)
  85. #define XtInheritUnhighlight XtInheritHighlight
  86. #define XtInheritNotify      XtInheritHighlight
  87.  
  88. _XFUNCPROTOEND
  89.  
  90. #endif /* _XawSmeP_h */
  91.